include $(TOPDIR)/rules.mk

PKG_NAME:=urbalink-theme
PKG_VERSION:=0.0
PKG_RELEASE:=1
#PKG_BUILD_DEPENDS:=+webif
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/urbalink-theme
  SECTION:=admin
  CATEGORY:=Administration
  SUBMENU:=Urbalink Stuff
  DEPENDS:=+urbalink-donothing
  TITLE:=Urbalink Customization of X-Wrt
  VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
endef

define Build/Prepare
	$(call Build/Prepare/Default)
	$(CP) -a files ipkg/* $(PKG_BUILD_DIR)
	find $(PKG_BUILD_DIR)/files -name 'CVS' -o -name '.svn' -o -name '*~' | $(XARGS) rm -rf
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/urbalink-theme/install
	$(CP) -a $(PKG_BUILD_DIR)/files/* $(1)/
	mkdir -p $(1)/CONTROL
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/urbalink-themes.postinst $(1)/CONTROL/postinst
endef

$(eval $(call BuildPackage,urbalink-theme))
